import BasicLayout from '@/layouts/BasicLayout/index.vue'
import { RouteRecordRaw } from 'vue-router'

// echarts图路由
export const echarts: Array<RouteRecordRaw> = [
  {
    path: '/echarts',
    redirect: '/echarts/category',
    component: BasicLayout,
    meta: {
      title: 'Echarts',
      isShow: true,
      icon: 'FundOutlined'
    },
    children: [
      {
        path: '/echarts/category',
        name: 'Category',
        component: () => import('@/views/echarts/category/index.vue'),
        meta: {
          title: '折现图',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/echarts/bar',
        name: 'Bar',
        component: () => import('@/views/echarts/bar/index.vue'),
        meta: {
          title: '柱形图',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/echarts/pie',
        name: 'Pie',
        component: () => import('@/views/echarts/pie/index.vue'),
        meta: {
          title: '饼形图',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      },
      {
        path: '/echarts/map',
        name: 'Map',
        component: () => import('@/views/echarts/map/index.vue'),
        meta: {
          title: '地图',
          icon: 'AppstoreOutlined',
          isShow: true
        }
      }
    ]
  }
]
